import request from '@/utils/request'

// 查询银证转账列表
export function listTransfer(query) {
    return request({
        url: '/stock/transfer/list',
        method: 'get',
        params: query
    })
}

// 查询银证转账详细
export function getTransfer(id) {
    return request({
        url: '/stock/transfer/' + id,
        method: 'get'
    })
}

// 新增银证转账
export function addTransfer(data) {
    return request({
        url: '/stock/transfer',
        method: 'post',
        data: data
    })
}

// 修改银证转账
export function updateTransfer(data) {
    return request({
        url: '/stock/transfer',
        method: 'put',
        data: data
    })
}

// 删除银证转账
export function delTransfer(id) {
    return request({
        url: '/stock/transfer/' + id,
        method: 'delete'
    })
}

export function amountTransfer() {
    return request({
        url: '/stock/transfer/amount_by_tag',
        method: 'post'
    })
}


